home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / ld / scripttempl / go32coff.sc < prev    next >
Encoding:
Text File  |  1996-07-04  |  704 b   |  34 lines

  1. # Linker script for 386 go32
  2. # DJ Delorie (dj@ctron.com)
  3.  
  4. test -z "$ENTRY" && ENTRY=start
  5. cat <<EOF
  6. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  7. ${LIB_SEARCH_DIRS}
  8.  
  9. ENTRY(${ENTRY})
  10.  
  11. SECTIONS
  12. {
  13.   .text ${RELOCATING+ 0x1000+SIZEOF_HEADERS} : {
  14.     *(.text)
  15.     ${RELOCATING+ etext  =  . ; _etext = .};
  16.     ${RELOCATING+ . = ALIGN(0x200);}
  17.   }
  18.   .data ${RELOCATING+ ${DATA_ALIGNMENT}} : {
  19.     ${RELOCATING+ *(.ctor)}
  20.     ${RELOCATING+ *(.dtor)}
  21.     *(.data)
  22.     ${RELOCATING+ edata  =  . ; _edata = .};
  23.     ${RELOCATING+ . = ALIGN(0x200);}
  24.   }
  25.   .bss ${RELOCATING+ SIZEOF(.data) + ADDR(.data)} :
  26.   {                     
  27.     *(.bss)
  28.     *(COMMON)
  29.     ${RELOCATING+ end = . ; _end = .};
  30.     ${RELOCATING+ . = ALIGN(0x200);}
  31.   }
  32. }
  33. EOF
  34.